package com.aidex.biz.mapper;

import com.aidex.biz.domain.Appointment;
import com.aidex.common.core.mapper.BaseMapper;

/**
 * 上门预约Mapper接口
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2022-10-11
 */
public interface AppointmentMapper extends BaseMapper<Appointment> {

    /**
     * 批量删除上门预约
     *
     * @param ids 需要删除的上门预约ID集合
     * @return
     */
    public int deleteAppointmentByIds(String[] ids);

    /**
     * 获取最大编号
     *
     * @param appointment 上门预约
     * @return 结果
     */
    public Integer findMaxSort(Appointment appointment);

    /**
     * 查询未派单的上门订单
     *
     * @param
     * @return
     */
    Appointment findOneByStatus();

}
